]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix regression from 38f943ef81781210a7b680ecd58b75cb9007635a
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 16 Sep 2012 20:36:21 +0000 (22:36 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 17 Sep 2012 13:31:04 +0000 (15:31 +0200)
In gdm mode there is no activities button, and accessing it causes an
exception.

https://bugzilla.gnome.org/show_bug.cgi?id=684162

js/ui/messageTray.js

index cfbf011b480f46c936dae23c7fa76c412c9f2fa1..f11aa5b6b8e109a42eb0ebaf4b107f312c4e647b 100644 (file)
@@ -1443,7 +1443,8 @@ const MessageTray = new Lang.Class({
         this._grabHelper = new GrabHelper.GrabHelper(this.actor);
         this._grabHelper.addActor(this._summaryBoxPointer.actor);
         this._grabHelper.addActor(this.actor);
-        this._grabHelper.addActor(Main.panel.statusArea['activities'].hotCorner.actor);
+        if (Main.panel.statusArea.activities)
+            this._grabHelper.addActor(Main.panel.statusArea.activities.hotCorner.actor);
 
         Main.layoutManager.keyboardBox.connect('notify::hover', Lang.bind(this, this._onKeyboardHoverChanged));